package com.smart.manage.controller;

import com.smart.common.core.controller.BaseController;
import com.smart.manage.domain.ChatRequest;
import com.smart.manage.utils.DeepSeekUtils;
import org.springframework.web.bind.annotation.*;

/**
 * @Author lingyao
 * @Version 1.0
 * @Description
 * @Date 2025/03/07 17:08
 */
@RestController
@RequestMapping("/manage/deepseek")
public class DeepSeekController extends BaseController {


    @PostMapping("/chat")
    public String getChat(@RequestBody ChatRequest request) throws Exception {
        return DeepSeekUtils.getChat(request.getPrompt());
    }
}
